package com.renchi.menu.User.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert //动态插入
@DynamicUpdate  //动态更新
@Table(name = "bgd_data_userdb")
public class UserDbEntity {
    private int id;
    @Id
    private String user_id;
    private String user_name;
    private String user_img;
    private String autograph;
}
